package org.cornland.systemWarning.service.impl;

import org.cornland.systemWarning.model.Djdwxx;
import org.cornland.systemWarning.mapper.DjdwxxMapper;
import org.cornland.systemWarning.service.DjdwxxService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * <p>
 * 单井点位信息 服务实现类
 * </p>
 *
 * @author Hawk Tang
 * @since 2021-11-08
*/


@Service
@Slf4j
public class DjdwxxServiceImpl extends ServiceImpl<DjdwxxMapper, Djdwxx> implements DjdwxxService {

   @Autowired
   private DjdwxxMapper djdwxxMapper;

   public Djdwxx selectByPrimaryKey(Integer id){
        Djdwxx djdwxx = djdwxxMapper.selectById(id);
        return djdwxx;
   }

   public List<Djdwxx> selectAll(){
        List<Djdwxx> djdwxxList = djdwxxMapper.selectList(null);
        return djdwxxList;
   }

   public Integer insert(Djdwxx djdwxx){
        int result = djdwxxMapper.insert(djdwxx);
        return result;
   }

   public Integer updateByPrimaryKey(Djdwxx djdwxx){
        int result = djdwxxMapper.updateById(djdwxx);
        return result;
   }

   public Integer deleteByPrimaryKey(Integer id){
        int result = djdwxxMapper.deleteById(id);
        return result;
   }







}